public class CellT {
    Cell[] cells = new Cell[4];
    CellT(){
        cells[0] = new Cell(1,1);
        cells[1] = new Cell(1, 2);
        cells[2] = new Cell(1, 3);
        cells[3] = new Cell(2, 2);
    }
    CellT(Cell fistcell){
        cells[0] = fistcell;
        cells[1] = new Cell(fistcell.x+1, fistcell.y+2);
        cells[2] = new Cell(fistcell.x+1, fistcell.y+3);
        cells[3] = new Cell(fistcell.x+2, fistcell.y+2);
    }
    public void print(){
        for (int row = 0; row < 10; row++) {
            for (int col = 0; col < 10; col++) {
                boolean flag = true;
                for (int i = 0; i < cells.length; i++) {
                    if (row == cells[i].x && col == cells[i].y){
                        System.out.print("*");
                        flag = false;
                        break;
                    }/*else {
                        System.out.print("-");
                        break;
                    }*/
                }
                if (flag){
                    System.out.print("-");
                }
            }
            System.out.println();
        }
    }
}